package com.ruoyi.camera.service.impl;

import java.util.List;

import com.ruoyi.camera.domain.AimpCamera;
import com.ruoyi.camera.mapper.AimpCameraMapper;
import com.ruoyi.camera.service.IAimpCameraService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 摄像机Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-06-02
 */
@Service
public class AimpCameraServiceImpl implements IAimpCameraService
{
    @Autowired
    private AimpCameraMapper aimpCameraMapper;

    /**
     * 查询摄像机
     * 
     * @param id 摄像机主键
     * @return 摄像机
     */
    @Override
    public AimpCamera selectAimpCameraById(String id)
    {
        return aimpCameraMapper.selectAimpCameraById(id);
    }

    /**
     * 查询摄像机列表
     * 
     * @param aimpCamera 摄像机
     * @return 摄像机
     */
    @Override
    public List<AimpCamera> selectAimpCameraList(AimpCamera aimpCamera)
    {
        return aimpCameraMapper.selectAimpCameraList(aimpCamera);
    }

    /**
     * 新增摄像机
     * 
     * @param aimpCamera 摄像机
     * @return 结果
     */
    @Override
    public int insertAimpCamera(AimpCamera aimpCamera)
    {
        return aimpCameraMapper.insertAimpCamera(aimpCamera);
    }

    /**
     * 修改摄像机
     * 
     * @param aimpCamera 摄像机
     * @return 结果
     */
    @Override
    public int updateAimpCamera(AimpCamera aimpCamera)
    {
        return aimpCameraMapper.updateAimpCamera(aimpCamera);
    }

    /**
     * 批量删除摄像机
     * 
     * @param ids 需要删除的摄像机主键
     * @return 结果
     */
    @Override
    public int deleteAimpCameraByIds(String[] ids)
    {
        return aimpCameraMapper.deleteAimpCameraByIds(ids);
    }

    /**
     * 删除摄像机信息
     * 
     * @param id 摄像机主键
     * @return 结果
     */
    @Override
    public int deleteAimpCameraById(String id)
    {
        return aimpCameraMapper.deleteAimpCameraById(id);
    }
}
